

function __cfg(c) {
    return(cfg && cfg.cfg && cfg.cfg[c]) ? cfg.cfg[c]: false;
}

(jQuery);
jQuery('html').addClass('js');
jQuery(document).ready(function($) {	
    jQuery("#BoxRight").addScrollControl({
        initTop : 350,
        offsetTop : 350,
        animation : false,
        offsetToScroll : 0,
        offsetLeft : 970,
        RelativeID : "MainHome"
    });	
	
	// show label deal category
	$('.JsDealCategoryTop ul li').livequery('mouseover', function() {
		$('.JsDealCategoryTop ul li a').show();
		$('.JsDealCategoryTop').removeClass('dc-nav-small');$('.JsDealCategoryTop').addClass('dc-nav-big'); 
	});
	// hide label deal category
	$('.JsDealCategoryTop ul li').livequery('mouseout', function() {
		$('.JsDealCategoryTop ul li a.DCLabel').hide();
		$('.JsDealCategoryTop').removeClass('dc-nav-big');$('.JsDealCategoryTop').addClass('dc-nav-small');
	});
	// change deal category when (window) resize small
	$(window).resize(function() {
		$this = $(this);		
		if ($this.width() <= 1100) $('.JsDealCategoryTop').addClass('dc-nav-slow');
		else $('.JsDealCategoryTop').removeClass('dc-nav-slow');
	});
	// change deal category when (window) small
	if ($(window).width() <= 1100) $('.JsDealCategoryTop').addClass('dc-nav-slow');
	else $('.JsDealCategoryTop').removeClass('dc-nav-slow');

});
